﻿using System;
namespace ShortestPaths
{
    public class DirectedEdge
    {
        private int v;//边的起点
        private int w;//边的终点
        private double weight;//边的权重

        public DirectedEdge(int v,int w,double weight)
        {
            this.v = v;
            this.w = w;
            this.weight = weight;
        }

        public double Weight()
        {
            return weight;
        }

        public int From()
        {
            return v;
        }

        public int To()
        {
            return w;
        }
    }
}
